package top.kaoshanji.q1ch07a.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/25 10:35
 */
@Controller
public class HomeController {

    /**
     * 代码清单-q1ch07a-01：再次搭建一下Spring MVC
     * @param model
     * @return
     */
    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public String home(Model model) {
        return "homePage";
    }

}
